package net.ikenna.yadet.core.cellprocessor;

import net.ikenna.yadet.core.data.*;

public class HtmlStrippingCellProcessor implements CellProcessor {

    public Cell process(Cell  cell) {
        if (cell.containsString()) {
            String cellValue = (String) cell.getValue();
            String newCellValue = cellValue.replaceAll("\\<.*?\\>", "");
            cell.setValue(newCellValue);
        }
        return cell;
    }

}
